package com.bkitmobile.kesu.appengine.storingdata.server.entity;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class InviteUser {
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;//user who invite
	
	@Persistent
	private String comment;
	
	@Persistent
	private String idFrom;
	
	@Persistent
	private String idDest;
	
	public InviteUser(Key key, String cmt,String idFrom,String idDest)
	{
		this.key = key;
		this.comment = cmt;
		this.setIdFrom(idFrom);
		this.setIdDest(idDest);
	}
	public void setKey(Key key) {
		this.key = key;
	}

	public Key getKey() {
		return key;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getComment() {
		return comment;
	}
	public void setIdFrom(String idFrom) {
		this.idFrom = idFrom;
	}
	public String getIdFrom() {
		return idFrom;
	}
	public void setIdDest(String idDest) {
		this.idDest = idDest;
	}
	public String getIdDest() {
		return idDest;
	}
}
